From: Florian Müllner Date: Fri, 14 Feb 2014 13:00:17 +0000 (+0100) Subject: appDisplay: Re-add _getCategories X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2793 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4d3fd7598d6f20df7a84c66526adc8409badc383;p=gnome-shell.git appDisplay: Re-add _getCategories It was introduced by one of the commits reverted by 812a61939e2d06, but is now used for app folders as well; add it back. --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 0d5328943..e2db974b3 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -46,6 +46,13 @@ const INDICATORS_ANIMATION_MAX_TIME = 0.75; const PAGE_SWITCH_TRESHOLD = 0.2; const PAGE_SWITCH_TIME = 0.3; +function _getCategories(info) { + let categoriesStr = info.get_categories(); + if (!categoriesStr) + return []; + return categoriesStr.split(';'); +} + function _listsIntersect(a, b) { for (let itemA of a) if (b.indexOf(itemA) >= 0)